package com.example.fillthemapwithtubes.db;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

public class RecordEntity implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4269215869888106881L;

	private int id;
	private int mapId;
	private String mapName;
	private long createTime;
	private int totalTime;
	private int totalUse;

	public RecordEntity(int id, int mapId, long createTime, int totalTime, int totalUse, String mapName) {
		this.id = id;
		this.mapId = mapId;
		this.createTime = createTime;
		this.totalTime = totalTime;
		this.totalUse = totalUse;
		this.mapName = mapName;
	}

	public Map<String, String> toMap() {
		Map<String, String> data = new HashMap<String, String>();
		data.put(DBConstants.PKID, id + "");
		data.put(DBConstants.RECORD_MAP_ID, mapId + "");
		data.put(DBConstants.RECORD_MAP_NAME, mapName);
		data.put(DBConstants.RECORD_CREATE_TIME, createTime + "");
		data.put(DBConstants.RECORD_TOTAL_TIME, totalTime + "");
		data.put(DBConstants.RECORD_TOTAL_USE, totalUse + "");
		return data;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getMapId() {
		return mapId;
	}

	public void setMapId(int mapId) {
		this.mapId = mapId;
	}

	public long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(long createTime) {
		this.createTime = createTime;
	}

	public int getTotalTime() {
		return totalTime;
	}

	public void setTotalTime(int totalTime) {
		this.totalTime = totalTime;
	}

	public int getTotalUse() {
		return totalUse;
	}

	public void setTotalUse(int totalUse) {
		this.totalUse = totalUse;
	}

	public String getMapName() {
		return mapName;
	}

	public void setMapName(String mapName) {
		this.mapName = mapName;
	}
}
